
package vip.xiaonuo.biz.modular.lancerGoodsTag.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.biz.modular.lancerGoodsTag.entity.BizGoodsTag;
import vip.xiaonuo.biz.modular.lancerGoodsTag.param.BizGoodsTagAddParam;
import vip.xiaonuo.biz.modular.lancerGoodsTag.param.BizGoodsTagEditParam;
import vip.xiaonuo.biz.modular.lancerGoodsTag.param.BizGoodsTagIdParam;
import vip.xiaonuo.biz.modular.lancerGoodsTag.param.BizGoodsTagPageParam;
import vip.xiaonuo.biz.modular.lancerGoodsTag.service.BizGoodsTagService;
import vip.xiaonuo.biz.modular.pojo.vo.KV;
import vip.xiaonuo.common.annotation.CommonLog;
import vip.xiaonuo.common.pojo.CommonResult;
import vip.xiaonuo.common.pojo.CommonValidList;

import javax.annotation.Resource;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 商品标签表控制器
 *
 * @author Lancer
 * @date 2024/03/13 15:55
 */
@Api(tags = "B端商品标签")
@ApiSupport(author = "LANCER_TEAM", order = 1)
@RestController
@Validated
public class BusGoodsTagController {

    @Resource
    private BizGoodsTagService bizGoodsTagService;


    @ApiOperationSupport(order = 5)
    @ApiOperation("B端获取所有标签")
    @SaCheckPermission("/biz/business/lancerGoodsTag/allTag")
    @GetMapping("/biz/business/lancerGoodsTag/allTag")
    public CommonResult<List<KV>> allTag() {
        return CommonResult.data(bizGoodsTagService.allTag());
    }

}
